package com.my.goodsmanage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * @author 徐佳辉
 * @date 2020/8/4 18:35
 */
@ToString
@Data
public class Goods {

    @TableId(value = "good_id",type = IdType.AUTO)
    private Integer goodId;

    private int userId;

    private String goodName;

    private int quantity;

    private String goodPlace;

    private String detail;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    public Goods() {
    }


}
